﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaoCaoKetQuaCongTacChinhSachTrongTamCongTacChinhSach_Edit.aspx.cs"
    Inherits="AIC_CS.BaoCaoKetQuaCongTacChinhSachTrongTamCongTacChinhSach_Edit" MasterPageFile="~/Site1.Master" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div id="Div1" class="FormTitle" runat="server">
        <p class="TextTitle">
            <label id="lblFormName" runat="server" class="lblFormName">
                Cập nhật báo cáo kết quả công tác chính sách, trọng tâm công tác chính sách
            </label>
            <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
                Height="24px" OnClick="ImageButton1_Click" />
        </p>
    </div>
    <div class="FormMain">
        <div class="labelNotice">
            <label id="lblNotice" style="color: Red" runat="server" visible="false">
                Thông báo lỗi</label>
        </div>
        <div class="Form Update" id="formSearch" runat="server">
            <table border="1px" class="ListForm" style="width: 800px">
                <tr>
                    <td>
                        Đơn vị
                    </td>
                    <td>
                        <asp:Label ID="lblDonVi" runat="server"></asp:Label>
                    </td>
                    <td>
                        Kỳ báo cáo
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlKyBaoCao" runat="server" CssClass="ControlDropdown" AutoPostBack="True"
                            OnSelectedIndexChanged="ddlKyBaoCao_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số báo cáo
                    </td>
                    <td>
                        <asp:TextBox ID="txtReportNumber" runat="server" Width="200" CssClass="inputtext">
                        </asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="cmdBtn" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="Form View">
        <asp:GridView ID="grvData" runat="server" AutoGenerateColumns="False" CssClass="ListTable"
            OnPageIndexChanging="grvData_PageIndexChanging" DataKeyNames="ID" OnRowCommand="grvData_RowCommand"
            OnRowDataBound="grvData_RowDataBound" PageSize="30" AllowPaging="True">
            <Columns>
                <%--<asp:TemplateField HeaderText="STT">
                        <ItemTemplate>
                            <asp:Label ID="lblIDDM" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="Số TT">
                    <ItemTemplate>
                        <asp:Label ID="lblSoThuTu" runat="server" Text='<%# Eval("SoThuTu") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="20px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên báo cáo">
                    <ItemTemplate>
                        <asp:Label ID="lblTenBaoCao" runat="server" Text='<%# Eval("TenBaoCao") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="400px" HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Báo cáo số">
                    <ItemTemplate>
                        <asp:Label ID="lblBaoCaoSo" runat="server" Text='<%# Eval("BaoCaoSo") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="140px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Kỳ Báo cáo">
                    <ItemTemplate>
                        <asp:Label ID="lblKyBaoCao" runat="server" Text='<%# Eval("KyBaoCao") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="140px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày tạo">
                    <ItemTemplate>
                        <asp:Label ID="lblCreated" runat="server" Text='<%# Eval("Created") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="120px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Cập nhật cuối">
                    <ItemTemplate>
                        <asp:Label ID="lblUpdated" runat="server" Text='<%# Eval("Updated") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="120px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="CT">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbtDetail" runat="server" ImageUrl="images/Detail.gif" CommandName="Detail"
                            CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle Width="10px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbtEdit" runat="server" ImageUrl="images/edit.gif" CommandName="<%# AIC_CS.MyConst.Action.Update %>"
                            CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle Width="10px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Xóa">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbtDelete" runat="server" ImageUrl="images/delete.png" CommandName="<%# AIC_CS.MyConst.Action.Delete %>"
                            OnClientClick="return confirm('Bạn có chắc là muốn xóa bản ghi này không ?')"
                            CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle Width="10px" HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
